import { Routes } from '@angular/router';

import { ApplicationComponent } from './application/application.component';
import { SystemDictComponent } from './dict/dict.component';
import { SystemMenuComponent } from './menu/menu.component';
import { SystemParamComponent } from './param/param.component';
import { ResourceComponent } from './resource/resource.component';
import { RoleMenuComponent } from './role/role-menu.component';
import { RoleResourceComponent } from './role/role-resource.component';
import { SystemRoleComponent } from './role/role.component';
import { SystemTenantComponent } from './tenant/tenant.component';
import { ThirdUserComponent } from './third/third-user.component';
import { SystemUserComponent } from './user/user.component';

export const routes: Routes = [
  {
    path: '',
    providers: [],
    children: [
      { path: 'role', component: SystemRoleComponent, title: '角色管理' },
      { path: 'menu', component: SystemMenuComponent, title: '菜单管理' },
      { path: 'resource', component: ResourceComponent, title: '资源管理' },
      { path: 'role-menu', component: RoleMenuComponent, title: '角色菜单管理' },
      { path: 'role-resource', component: RoleResourceComponent, title: '角色资源管理' },
      { path: 'user', component: SystemUserComponent, title: '用户管理' },
      { path: 'dict', component: SystemDictComponent, title: '字典管理' },
      { path: 'param', component: SystemParamComponent, title: '参数管理' },
      { path: 'third', component: ThirdUserComponent, title: '三方用户管理' },
      { path: 'application', component: ApplicationComponent, title: '平台应用' },
      { path: 'tenant', component: SystemTenantComponent, title: '租户管理' }
    ]
  }
];
